<?php

require "database.php";

$__f__=file_get_contents("demo.json");
$__f__=json_decode($__f__,1);
$mode=$__f__["mode"];
for ($i = 0; $i < count($__f__); $i++) {
    if($__f__["modelist"][$i]["name"]==$mode){
        $__f__["modelist"][$i]["tree"]=1;
    }
}
return json($__f__["modelist"]);
